home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / ObjectTcl-1.1 / Test.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-30  |  3.8 KB  |  95 lines

  1. #ifndef TEST_CLASS_H
  2. #define TEST_CLASS_H
  3.  
  4. /*  _ __ ___ _
  5.  * | |\ /  /| |  $Id: Test.H,v 1.7 1995/06/16 13:04:16 deans Exp $
  6.  * | | /  / | |  Copyright (C) 1995 IXI Limited.
  7.  * |_|/__/_\|_|  IXI Limited, Cambridge, England.
  8.  *
  9.  * Component   : Test.H
  10.  *
  11.  * Author      : Dean Sheehan (deans@x.co.uk)
  12.  *  
  13.  * Description : Test classes
  14.  *
  15.  * License     :
  16.             Object Tcl License & Copyright
  17.             -----------------------------
  18.  
  19. IXI Object Tcl software, both binary and source (hereafter, Software) is copyrighted by IXI Limited (IXI), and ownership remains with IXI. 
  20.  
  21. IXI grants you (herafter, Licensee) a license to use the Software for academic, research and internal business purposes only, without a fee. Licensee may distribute the binary and source code (if required) to third parties provided that the copyright notice and this statement appears on all copies and that no charge is associated with such copies. 
  22.  
  23. Licensee may make derivative works. However, if Licensee distributes any derivative work based on or derived from the Software, then Licensee will (1) notify IXI regarding its distribution of the derivative work, and (2) clearly notify users that such derivative work is a modified version and not the original IXI Object Tcl distributed by IXI. IXI strongly recommends that Licensee provide IXI the right to incorporate such modifications into future releases of the Software under these license terms. 
  24.  
  25. Any Licensee wishing to make commercial use of the Software should contact IXI, to negotiate an appropriate license for such commercial use. Commercial use includes (1) integration of all or part of the source code into a product for sale or license by or on behalf of Licensee to third parties, or (2) distribution of the binary code or source code to third parties that need it to utilize a commercial product sold or licensed by or on behalf of Licensee. 
  26.  
  27. IXI MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. IXI SHALL NOT BE LIABLE FOR ANY DAMAGES WHATSOEVER SUFFERED BY THE USERS OF THIS SOFTWARE. 
  28.  
  29. Copyright (C) 1995, IXI Limited 
  30.  
  31. By using or copying this Software, Licensee agrees to abide by the copyright law and all other applicable laws of England and the U.S., including, but not limited to, export control laws, and the terms of this license. IXI shall have the right to terminate this license immediately by written notice upon Licensee's breach of, or non-compliance with, any of its terms. Licensee may be held legally responsible for any copyright infringement that is caused or encouraged by Licensee's failure to abide by the terms of this license. 
  32.  
  33. Comments and questions are welcome and can be sent to
  34. otcl@x.co.uk 
  35.  
  36. For more information on copyright and licensing issues, contact: 
  37. Legal Department, IXI Limited, Vision Park, Cambridge CB4 4ZR,
  38. ENGLAND. 
  39.  
  40.  *
  41.  */
  42.  
  43. #include "tcl.h"
  44.  
  45. extern Tcl_Interp *testInterp;
  46.  
  47. class SimpleCppClass
  48. {
  49. public:
  50.    SimpleCppClass (char *str, int val);
  51.    virtual ~SimpleCppClass ();
  52.    int getValue (void);
  53.    void setValue (int val);
  54.    char *getStr (void);
  55.    void setStr (char *);
  56.    static int getNoOfObjects (void);
  57.    static SimpleCppClass &getSimpleCppObject (void);
  58.  
  59. private:
  60.    char *str;
  61.    int val;
  62.    static int objectCount;
  63. };
  64.  
  65. class TestCppClass
  66. {
  67. public:
  68.    TestCppClass ();
  69.    virtual ~TestCppClass ();
  70.    void methodOne (void);
  71.    virtual void methodTwo (void);
  72.    void setOtherObject (TestCppClass &);
  73.    TestCppClass &getOtherObject (void);
  74.    void doMethodTwoOnOtherObject (void);
  75. private:
  76.    TestCppClass *otherObject;
  77. };
  78.  
  79. class PtrTestClass
  80. {
  81. public:
  82.    PtrTestClass (PtrTestClass  *);
  83.    void instanceMethodTest (PtrTestClass *);
  84.    static void classMethodTest (PtrTestClass *);
  85. };
  86.  
  87. class AbstractClass
  88. {
  89. public:
  90.    AbstractClass ();
  91.    virtual void aMethod (void) = 0;
  92. };
  93.  
  94. #endif // TEST_CLASS_H
  95.